package com.yinhai.message.manage.statistical.bpo;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.yinhai.core.service.ta3.domain.service.TaBaseService;
import com.yinhai.message.manage.statistical.dao.IMessageAnalysisDao;
import com.yinhai.message.manage.statistical.vo.MessageAnalysisVo;

/**
 * @author:TANQINGPING
 * @version:1.0 2017/4/18
 * package:com.yinhai.message.manage.statistical.bpo
 * <p>Title: MessageStatisticBpoImpl.java</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: 四川久远银海软件股份有限公司</p>
 */

public class MessageStatisticBpoImpl extends TaBaseService implements IMessageStatisticBpo {
    @Resource(name = "messageAnalysisDao")
    private IMessageAnalysisDao messageAnalysisDao;

    @Override
    public List<MessageAnalysisVo> getStatisticData(Map<String, Object> param) {
        return messageAnalysisDao.getAnalysisInfo("" + param.get("startDate"), "" + param.get("endDate"), "" + param.get("sendType"));
    }

    @Override
    public List<MessageAnalysisVo> getStatisticDataByH(Map<String, Object> param) {
        return messageAnalysisDao.getAnalysisInfoByH("" + param.get("startDate"), "" + param.get("endDate"), "" + param.get("sendType"));
    }

    @Override
    public List<MessageAnalysisVo> getTypesStatistic(Map<String, Object> param) {
        return messageAnalysisDao.getTypesStatistic("" + param.get("begin"), "" + param.get("end"), "" + param.get("sendType"));
    }
}
